package com.lds.xiaohashu.user.biz.domain.mapper;

import com.lds.xiaohashu.user.biz.domain.dataobject.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author lds
 * @since 2024-11-08
 */
public interface RoleMapper {

    /**
     * 查询所有被启用的角色
     */
    List<Role> selectEnabledList();

    Role selectByPrimaryKey(@Param("commonUserRoleId") Long commonUserRoleId);

}
